package com.heima.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_sku")
public class Sku {

    @TableId(value = "sku_id", type = IdType.AUTO)
    private Long skuId;
    private String skuName;
    private String skuImage;
    private Integer price;
    private Long classId;
    @TableField("is_discount")
    private Boolean discount;
    private String unit;
    private String brandName;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableField(exist = false)
    private SkuClass skuClass;
}
